﻿using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Configuration;

namespace Zhaoxi.IdentitySample.EmailService
{
    public static class EmailServiceExtension
    {
        public static void AddEmailService(this IServiceCollection services, IConfiguration configuration)
        {
            services.Configure<FromEmailConfig>(configuration);
            services.AddScoped<IEmailSender, EmailSender>();
        }
    }
}
